package com.itheima.dao;

import java.util.Scanner;

public class Arr16 {
    public static void main(String[] args) {
        int []arr= {11,22,33,44,55};
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入您要猜的数字");
        int score = sc.nextInt();
        int index=-1;
        for (int i = 0; i < arr.length; i++) {
            if (score==arr[i]){
                index=i;
            }
        }
        System.out.println(index);
    }
}
